<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <%@include file="../../common/include_list_head.jsp" %>
    <title>门户数据源维护</title>

    <script type="text/javascript">
        detailPageStyle();

        validate_required_fields = [
            {fieldId:"code", message:"英文缩写不能为空！", mustMatch: true},
            {fieldId:"driver", message:"数据源驱动类不能为空！", mustMatch: true},
            {fieldId:"url", message:"数据源连接不能为空！",mustMatch:true },
            {fieldId:"username", message:"用户名不能为空！",mustMatch:true },
            {fieldId:"pwd", message:"密码不能为空！",mustMatch:true }
        ];
        function doSave(){
            if(isValidateForm()){
                    super_doSave();
            }
        }
        function dosavenew(){
            doSave();
        }
        function dosaveclose(){
            doSave();
            parent.closeEntityWindow();
        }
    </script>


</head>

<body style="text-align:center;">

<div class="box1" >
    <s:form name="theform" method="post" theme="simple" >
        <s:hidden name="tdb.wid" />
        <fieldset>
            　 <legend>门户数据源维护</legend>
            <table width="100%" border="0" align="center">
                <tr>
                    <td align="right">名称英文缩写：</td>
                    <td align="left"><s:textfield id="code" name="tdb.code" maxlength="50" size="20" cssStyle="width:300px;"/> <label style="color:red">*</label></td>
                </tr>
                <tr>
                    <td align="right" nowrap="nowrap">数据源名称：</td>
                    <td align="left">
                        <s:textfield id="name" name="tdb.name" maxlength="50" size="20" cssStyle="width:300px;"/> <label style="color:red">*</label></td>
                </tr>
                <tr>
                    <td align="right" nowrap="nowrap">数据源驱动类：</td>
                    <td align="left"><s:textfield id="driver" name="tdb.driver" maxlength="100" size="20" cssStyle="width:300px;"/> <label style="color:red">*</label></td>
                </tr>
                <tr>
                    <td align="right" nowrap="nowrap">数据源连接：</td>
                    <td align="left"><s:textfield id="url" name="tdb.url" maxlength="300" size="20" cssStyle="width:300px;"/> <label style="color:red">*</label></td>
                </tr>
                <tr>
                    <td align="right" nowrap="nowrap">用户名：</td>
                    <td align="left"><s:textfield id="username" name="tdb.username" maxlength="300" size="20" cssStyle="width:300px;"/> <label style="color:red">*</label></td>
                </tr>
                <tr>
                    <td align="right" nowrap="nowrap">密码：</td>
                    <td align="left"><s:password id="pwd" name="tdb.pwd" maxlength="300" size="20" cssStyle="width:300px;"/> <label style="color:red">*</label></td>
                </tr>
                <tr>
                    <td align="right" nowrap="nowrap">业务系统连接地址：</td>
                    <td align="left"><s:textfield id="link" name="tdb.link" maxlength="300" size="20" cssStyle="width:300px;"/> </td>
                </tr>
                <tr>
                    <td align="right" nowrap="nowrap">是否启用：</td>
                    <td align="left">
                        <s:radio cssClass="validate[required] radio" name="tdb.state" list="#{1:'启用', 0:'禁用'}" listKey="key" listValue="value"/>
                        <label style="color:red">*</label></td>
                </tr>
                <tr>
                    <td align="right" nowrap="nowrap">描述：</td>
                    <td align="left">
                        <s:textarea name="tdb.des" id="des" cssStyle="width:300px;"></s:textarea>
                       </td>
                </tr>



            </table>
        </fieldset>

    </s:form>
</div>
<div class="padding_top10">
    <table class="tableStyle" transMode="true">
        <tr>
            <td colspan="4">
                <input type="button" id="ysSaveButton" value=" 保 存 " onclick="doSave()"/>
                <input type="button" value=" 关 闭 " onclick="parent.closeEntityWindow()"/>
                <s:if test="actionErrors.size()>0 || actionMessages.size()>0 || fieldErrors.size()>0">
						<span id="SystemErrorMessage" style="top: 20px">
							<s:actionerror cssStyle="color:red"/>
							<s:actionmessage cssStyle="color:blue"/>
							<s:fielderror/>
						</span>
                </s:if>
            </td>
        </tr>
    </table>
</div>
</body>
</html>
